package java56_5;

import java.util.Scanner;

public class TestMarket {

	public static void main(String[] args) {
		Market m = new Market("家乐福新都会店", "屯溪路190号");
		m.storeVipInfo(new Vip("王大妈", "hf001", "131839838383", 500));
		m.storeVipInfo(new Vip("李大爷", "hf002", "136839838383", 1500));
		m.showVips();
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入卡号：");
		String cardNo = sc.next();
		System.out.println("兑换设呢么？");
		int type = sc.nextInt();
		String ex = m.exchange(cardNo, type);
		if (ex == null) {
			System.out.println("兑换失败");
		} else {
			System.out.println("兑换了" + ex);
		}
		m.showVips();
	}

}
